package cn.kpt.search.dao;


import cn.kpt.search.entity.HotelSearchVO;
import com.ctc.wstx.sw.EncodingXmlWriter;
import org.apache.solr.client.solrj.SolrQuery;

import java.util.List;
import java.util.Map;

public interface SearchHotelDao {
    /**
     * 根据条件查询酒店列表
     * @param map
     * @return
     * @throws Exception
     */
    List<HotelSearchVO> getHotelListByParams(Map<String, Object> map)throws Exception;

    /**
     * 查询酒店
     * @param solrQuery
     * @return
     * @throws Exception
     */
    List<HotelSearchVO> getHotelListForPaging(SolrQuery solrQuery)throws Exception;

    /**
     * 查询总记录数
     * @param solrQuery
     * @return
     * @throws EncodingXmlWriter
     */
    long getHotelListCount(SolrQuery solrQuery)throws Exception;
}
